﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="DriversView.aspx.cs" Inherits="BasicBase_Vehicle_DriversView" StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>
            <asp:DropDownList ID="DepartmentList" runat="server" DataValueField="DepartmentId"
                DataTextField="ShortName" OnSelectedIndexChanged="DepartmentList_SelectedIndexChanged"
                AutoPostBack="True">
            </asp:DropDownList>
        </li>
    </ul>
    <asp:GridView ID="gvSoldiers" runat="server" AutoGenerateColumns="False" Caption="<span>各支队司机列表</span>"
        DataKeyNames="SoldierID,DepartmentID" Width="98%" OnRowDataBound="gvSoldiers_RowDataBound">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
       
                    <asp:Label runat="server" ID="lblID" Text='<%# Eval("SoldierID") %>' Visible="false"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CardID" HeaderText="编号" />
            <asp:TemplateField HeaderText="姓名">
                <ItemTemplate>
                    <a runat="server" target="_blank" id="AName">
                        <%# Eval("SoldierName")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位 ">
                <ItemTemplate>
                    <asp:Label runat="server" ID="DepartmentName"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="车辆">
                <ItemTemplate>
                    <asp:HyperLink runat="server" Target="_blank" ID="HypVehicle"><%# Eval("VehicleName")%></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="车辆类型">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblVehicleType"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <RowStyle HorizontalAlign="Left" />
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" PageSize="20" runat="server" OnPageSizeChange="ListPageContral1_PageSizeChange" />
</asp:Content>
